package com.wxy.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wxy.dao.userMapper;
import com.wxy.domain.User;
import com.wxy.domain.jwtUser;

@Component("userService")
public class userServiceImpl implements userService{
	@Autowired
	private userMapper userMapper;
	private static final Logger LOGGER=LoggerFactory.getLogger(userServiceImpl.class);
	@Override
	public User findById(int id) {
		// TODO 自动生成的方法存根
		LOGGER.info("调用了userservice1中的接口...");
		return userMapper.findById(id);
	}
	@Override
	public User findUser(jwtUser user) {
		// TODO 自动生成的方法存根
		return userMapper.findUser(user);
	}
}
